
set ObjPathapp=../pca10040e/s112/arm5_no_packs/_build/nrf52810_xxaa.hex
set ObjPathbootload=./softdevice/nrf52810_bootload_s112.hex
echo %ObjPathbootload%
nrfutil.exe settings generate --family NRF52810  --application %ObjPathapp% --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_settings.hex
mergehex.exe --merge %ObjPathbootload% ./softdevice/s112_nrf52_6.1.1_softdevice.hex --output production_final1.hex
mergehex.exe --merge production_final1.hex %ObjPathapp% --output production_final2.hex
mergehex.exe --merge production_final2.hex bootloader_settings.hex --output production_user.hex
nrfutil.exe pkg generate --hw-version 52 --application-version 1 --application %ObjPathapp% --sd-req 0xB8 --key-file ./secret_key/private.key dfufile.zip

